package com.abo.yaas.webservice.exceptions;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@SuppressWarnings("serial")
public class NotFoundException extends WebApplicationException {
    public NotFoundException() {
        this("Not Found!");
    }

    public NotFoundException(String message) {
        super(Response.status(404).entity(message).type(MediaType.TEXT_PLAIN)
                .build());
    }
}
